package com.platform.qujia.dao;

import com.platform.qujia.pojo.StationDeviceManager;
import com.platform.qujia.pojo.SysRole;
import com.platform.qujia.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PosMachineMapper {

    SysUser selectUserByUserName(String userName);
    SysUser selectUserByUserId(String userId);

    //根据有枪查询加油员ID
    List<SysUser> selectOilPersonnelIdByGun(SysUser gun);

    //获取油站的油枪所绑定的打印设备
    StationDeviceManager getStationDeviceManager(StationDeviceManager stationDeviceManager);

    /**
     * 查询站点绑定的小票机和pos机
     *     小票机和pos机没有绑定加油员时，默认查询这一台
     */
    List<StationDeviceManager> getStationDeviceManagerList(StationDeviceManager stationDeviceManager);


    List<SysRole> selectUserRoleByUserId(@Param("userId") String userId);
}
